<?php


namespace app\zhongcan\validate;


use think\Validate;

class BannerValidate extends  Validate
{
    protected $rule =[
        'image' => 'require',
        'url' => 'require',
    ];
    protected $message =[
        'image.require' =>'图像不能为空',
        'url.require' =>'跳转地址不能为空',
    ];
    protected $scene =[
        'add' =>['image','url'],
        'edit' =>['image'],
    ];
}